package com.yuzhitong.shapi.contract;

import com.yuzhitong.shapi.base.BaseView;
import com.yuzhitong.shapi.base.net.BaseListBean;
import com.yuzhitong.shapi.base.net.BaseObjectBean;
import com.yuzhitong.shapi.bean.AdStatusBean;
import com.yuzhitong.shapi.bean.DomainBean;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * @ClassName: TestContract
 * @Author: 70488
 * @CreateDate: 2020/07/18 14:58
 * @UpdateRemark: 更新说明：
 * @Description: 启动页
 */
public interface StartContract {
    interface Model {
        /**
         * 获取域名
         */
        Observable<BaseObjectBean<DomainBean>> getUrl(Map<String, Object> par);
        /**
         * 判断广告开启
         */
        Observable<BaseListBean<AdStatusBean>> getAdState(Map<String, Object> par);
    }

    interface View extends BaseView {
        /**
         * 请求成功
         */
        void result();

        void initSuccess();
    }

    interface Presenter {
        /**
         * 判断广告
         */
        void getAdState();
        /**
         * 获取域名
         */
        void getUrl();
    }
}
